Document Solutions for PDF
DS.Documents.DX.Windows Assembly / GrapeCity.Documents.DX Namespace / DataStream Class / ReadRange Method / ReadRange<T>(T[],Int32,Int32) Method
An array of values to be read from the stream.
The zero-based byte offset in buffer at which to begin storing the data read from the current stream.
The number of values to be read from the current stream.

In This Topic
    ReadRange<T>(T[],Int32,Int32) Method
    In This Topic
    Reads a sequence of elements from the current stream into a target buffer and advances the position within the stream by the number of bytes read.
    Syntax
    'Declaration
     
    Public Overloads Function ReadRange(Of T As {New, Struct})( _
       ByVal buffer() As T, _
       ByVal offset As System.Integer, _
       ByVal count As System.Integer _
    ) As System.Integer
    public System.int ReadRange<T>( 
       T[] buffer,
       System.int offset,
       System.int count
    )
    where T: new(), struct

    Parameters

    buffer
    An array of values to be read from the stream.
    offset
    The zero-based byte offset in buffer at which to begin storing the data read from the current stream.
    count
    The number of values to be read from the current stream.

    Type Parameters

    T

    Return Value

    The number of bytes read from the stream.
    Exceptions
    ExceptionDescription
    This stream does not support reading.
    Remarks
    In order to provide faster read/write, this operation doesn't check stream bound. A client must carefully not read/write above the size of this datastream.
    See Also